﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using xuxuzhaozhao.Blog.Application.XuAritcleService;
using xuxuzhaozhao.Blog.Application.XuAritcleService.Dto.Article;

namespace xuxuzhaozhao.Blog.XuApi
{
    [RoutePrefix("api")]
    public class ArticleController : ApiController
    {
        private readonly XuAritcleService _service = new XuAritcleService();

        [HttpPost, Route("getarticles")]
        public object GetList(PageInput input)
        {
            return _service.GetListBehind(input);
        }
    }
}
